package com.haifeng.im.handler;

import com.haifeng.im.message.Message;
import org.springframework.web.socket.WebSocketHandler;
import org.springframework.web.socket.WebSocketSession;

public interface MessageHandler<T extends Message> {

    void execute(WebSocketSession session,T message);

    void breaked(WebSocketSession session,T message);

    String getType();
}
